package com.lingxu.base.system.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("SYS_ROLE")
@EqualsAndHashCode()
@Accessors(chain = true)
@ApiModel(value="SYS_ROLE对象", description="角色信息")
public class SysRole implements Serializable{
    
	/**主键*/
	@TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键（编辑时必填）")
	private String id;
	/**角色名*/
    @ApiModelProperty(value = "角色名")
	private String name;
	/**角色code*/
    @ApiModelProperty(value = "角色代码")
	private String code;
	/**描述*/
    @ApiModelProperty(value = "描述")
	private String description;
	/**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间",hidden = true)
	private Date createtime;
	/**创建人*/
    @ApiModelProperty(value = "创建人",hidden = true)
	private String createby;
	/**删除标记位*/
    @ApiModelProperty(value = "删除标记位",hidden = true)
	private String isdel;

}
